/**
 * 
 */
package org.codesmell.util.rendermap.js;

import org.codesmell.util.rendermap.TypeConverter;
import org.codesmell.util.rendermap.local.Assert;

/**
 * @author Uwe Schaefer, (us@thomas-daily.de)
 */
public class EnumConverter implements TypeConverter
{

    @Override
    public Object convert(Object value)
    {
        Assert.parametersNotNull("value", value);
        return ((Enum) value).name();
    }

}
